package org.sikyon.chocolatebiscuit.model.exceptions;

import org.sikyon.chocolatebiscuit.model.Money;

public class MoneyFormatException extends RuntimeException {

    public MoneyFormatException(String unparseable) {
        super(String.format("'%s' couldn't be parsed into a Money. Only Strings abiding to the %s regular expression are parseable.", unparseable, Money.REGEX));
    }
}
